package com.test.demo.main.data

import androidx.lifecycle.MutableLiveData
import com.test.demo.network.apiService

import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

/**
 * 文件名: MainViewModel
 * 作者: hanc8
 * 创建日期: 2025/1/13
 * 功能描述:
 */
class MainViewModel : BaseViewModel() {

    var deviceNoBean = MutableLiveData<ResultState<String>>()

    /**
     * 获取设备码
     */
    fun getDeviceNo() {
        request(
            {
                apiService.getDeviceNo()
            }, deviceNoBean,
            false
        )
    }


}